package com.hundsun.yr.universal.p2p.presenter.impl;

import android.content.Context;

import com.hundsun.yr.universal.p2p.interactor.base.BaseTabInteractor;
import com.hundsun.yr.universal.p2p.listener.BaseMultiLoadedListener;
import com.hundsun.yr.universal.p2p.presenter.base.RequestPresenter;
import com.hundsun.yr.universal.p2p.view.base.BaseTabView;

import org.json.JSONObject;

import java.util.HashMap;



/**
 * @Title: BaseTabPresenterImpl.java 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @date 2016-1-19 下午2:00:11 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class BaseTabPresenterImpl implements RequestPresenter,BaseMultiLoadedListener<String>{
	
	 private Context mContext = null;
	 private BaseTabView mView = null;
	 private BaseTabInteractor mInteractor=null;
	
	public BaseTabPresenterImpl(Context context,BaseTabView view,BaseTabInteractor interactor) {
		// TODO Auto-generated constructor stub
		if (null == view) {
            throw new IllegalArgumentException("Constructor's parameters must not be Null");
        }
		this.mContext=context;
		this.mView=view;
		this.mInteractor =interactor;
	}
	

	@Override
	public void initialized() {
		// TODO Auto-generated method stub
		mView.initializeViews(mInteractor.getTabFragments(mContext),
				mInteractor.getTabItem(mContext),
				mInteractor.getTitles(mContext));
	}


	@Override
	public void loadingData(String task_name, String url, int event_tag,
			HashMap<String, String> params, boolean isSwipeRefresh) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void loadingData(String task_name, String url, int event_tag, HashMap<String, String> params, HashMap<String, String> header, boolean isSwipeRefresh) {

	}

	@Override
	public void loadingData(String task_name, String url, int event_tag, JSONObject params, HashMap<String, String> header, boolean isSwipeRefresh) {

	}


	@Override
	public void onSuccess(String task_name, int event_tag, String data) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void onException(String task_name, String msg) {
		// TODO Auto-generated method stub
		
	}

}
